<?php
/**
 * Here, we are connecting '/' (base path) to controller called 'Pages',
 * its action called 'display', and we pass a param to select the view file
 * to use (in this case, /app/views/pages/home.thtml)...
 */
	//$Route->connect('/', array('controller' => 'pages', 'action' => 'display', 'home'));
	$Route->connect('/', array('controller' => 'main', 'action' => 'index'));	
	$Route->connect('/search/*', array('controller' => 'main', 'action' => 'search'));

	$Route->connect('/groups/:action/*', array('controller' => 'categories'));
	$Route->connect('/topics/:action/*', array('controller' => 'posts'));

	$Route->connect('/user/*', array('controller' => 'users', 'action' => 'view'));
	$Route->connect('/topic/(\d+).html', array('controller' => 'posts', 'action' => 'view'));
	$Route->connect('/archive/*', array('controller' => 'posts', 'action' => 'date'));
	$Route->connect('/group/*', array('controller' => 'categories', 'action' => 'view'));
	$Route->connect('/tag/*', array('controller' => 'tags', 'action' => 'view'));
	
	$Route->connect('/pages/*', array('controller' => 'pages', 'action' => 'display'));
	$Route->connect('/about/', array('controller' => 'pages', 'action' => 'display', 'about'));
/**
 * Then we connect url '/test' to our test controller. This is helpfull in
 * developement.
 */

	$Route->connect('/tests', array('controller' => 'tests', 'action' => 'index'));
?>